package com.singzi.testCase;

import org.junit.Test;

public class Basics {
    static int a = 5;
    @Test
    //静态变量
    public void test01(){
        int a = 5;
        for (int i = 0; i < 10; i++) {
             a = 6;
        }
        System.out.println(a);
    }
    @Test
    public void test02(){
        System.out.println(a);
    }
    @Test
    public void swap(){

        int a = 6;
        int b = 6;
        a = a + b;
        b = a - b;
        a = a - b;
        System.out.println(a);
        System.out.println(b);
    }
}
